package com.example.demo.service.impl;

import com.example.demo.dao.db2.UserDb2Mapper;
import com.example.demo.dao.dto.UserDTO;
import com.example.demo.service.UserDb2Service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author
 * 用户 业务层实现
 */
@Service
@Slf4j
public class UserDb2ServiceImpl implements UserDb2Service {

    @Autowired
    private UserDb2Mapper userDb2Mapper;

    @Override
    public UserDTO queryUserById(Integer id) {
        return userDb2Mapper.queryUserById(id);
    }

}